package org.truenewx.tnxjee.core.util;

import org.apache.commons.lang3.StringUtils;

/**
 * 对象工具类，比{@link BeanUtil}更基础更通用化
 *
 * @author jianglei
 * @see BeanUtil
 */
public class ObjectUtil {

    private ObjectUtil() {
    }

    public static boolean isBlank(Object value) {
        if (value == null) {
            return true;
        }
        if (value instanceof String) {
            return StringUtils.isBlank((String) value);
        }
        return false;
    }

}
